package com.dex4d.model;

import com.google.gson.Gson;

public class TokenModel {

    /**
     * access_token : eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MzEyMzY0ODYsInVzZXJfbmFtZSI6IjEzMjQxNzE1MjU3IiwianRpIjoiZTVhNWZmZjUtNTdiMy00OTQ4LWE2MjEtZjZjMmQ4ZDkzOWQ2IiwiY2xpZW50X2lkIjoiYnJvd3NlciIsInNjb3BlIjpbImNsaWVudCJdfQ.H2oWFjG0yQblchFTebF_j_8_LX8Qu3JrqwxfSX12eYc0O74sYEkcaaWJFP0EbwEim7PK4HzGpD4R5q4TEz-vfo0rdK6MIs2HB9pArXsFC_qfCDIpbAu9-m7UhOEIV5-CmAPlzVzTnSxZE0yyYsEVj2Hu9d4SA4yBRM43ti2-EZoyipzfeCA9pkudIiztwiXvf4du7hjUnTmR1GdySHSxD8r-OKJYoEXF3871ss2aq4wor9MScU9y7nXZyw_ABKeGb7psnEmoppYl4oTTD_iEF118KdozeFCA5SN8xWdLzUveSbcajh2I9k9zmVzeaBfm2mVXjxslBq3i_GTqQe6kuA
     * token_type : bearer
     * refresh_token : eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MzM3ODUyODYsInVzZXJfbmFtZSI6IjEzMjQxNzE1MjU3IiwianRpIjoiOTFjODk0MGItMzZlYi00NmM2LThhZTgtNDUyYjU2OWEyNWUzIiwiY2xpZW50X2lkIjoiYnJvd3NlciIsInNjb3BlIjpbImNsaWVudCJdLCJhdGkiOiJlNWE1ZmZmNS01N2IzLTQ5NDgtYTYyMS1mNmMyZDhkOTM5ZDYifQ.FT8B6_wSs-R6u39hXaHBfV2gQ6Va-RQEbSOf698Y2gN1TWUQhgwfQhvgwgX0HMmzUKOLZwFoW-dX_l5_c57XWwdd3-lDE4JrYi3P1ZMY043eJu9XuxiNblcmAs_kNLXzbMiUgYeRw-kqHhWxjN7YE1XlC3OoACDUlMVfzNxAYKLDinoD9jrUAuqlvoi4EcrJSvbz3Em8-sZlmto4wC9N2mOkXEdKbYgp_4c3k6E-ykEtUjlbu13-LHG1asBQ9y6ZbkJdCgNsKcuCVaCsZARHpOpqU7jHEed4rSK5VnKhUconTV0jhupwr8Q8-17il1HQqssQUxnuOsHFHbuNCD7gPQ
     * expires_in : 43199
     * scope : client
     * jti : e5a5fff5-57b3-4948-a621-f6c2d8d939d6
     */

    private String access_token;
    private String token_type;
    private String refresh_token;
    private int expires_in;
    private String scope;
    private String jti;

    public static TokenModel objectFromData(String str) {

        return new Gson().fromJson(str, TokenModel.class);
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getJti() {
        return jti;
    }

    public void setJti(String jti) {
        this.jti = jti;
    }
}
